// LgSpriteStatic.cpp: implementation of the LgSpriteStatic class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "LgSpriteStatic.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

LgSpriteStatic::LgSpriteStatic(const list<POINT>& listPoint)
{
	m_eClassName=eStaticLgSprite;
	m_listPoint.assign(listPoint.begin(),listPoint.end());
	//make listrect
	if (m_listPoint.size()==4)
	{
		list<POINT>::const_iterator it=listPoint.begin();
		RectInBalloonElemnet_t st;
		st.rect.left=it->x;
		st.rect.top=it->y;
		it++;
		it++;
		st.rect.right=it->x;
		st.rect.bottom=it->y;
		st.nProperty=HPStay;
		m_vecHitRect.push_back(st);
	}
}
LgSpriteStatic::LgSpriteStatic(const vector<RectInBalloonElemnet_t>& listRect)
{
	m_vecHitRect.assign(listRect.begin(),listRect.end());
}
LgSpriteStatic::~LgSpriteStatic()
{

}
// short LgSpriteStatic::Hit(RECT rect)
// {
// 	return 0;
//}